$('.serverPerson').find('a').on('click',function(){
		var _this = this;
		$.ajax({
		 	cache: true,
			url:'/ps/task/userChoiceAction.do',
			type:'post',
			async: false,
			data:{
				'installerId':$(_this).attr('installerId'),
				'num':$("#taskNum").val(),
				'uuid':$("#uuid").val()
			},
			dataType:'JSON',
			success:function(data){
				console.log(data);
				if(data['code'] == 200){
					var href = $(_this).attr('link').split('uin=')[0];
					var hrefEnd = $(_this).attr('link').split('&site')[1];
					var openHref = href+"uin="+data.data+"&site"+hrefEnd;
					window.open(openHref,'_blank');
				}else if(data['code'] == 300){
					window.open($(_this).attr('link'));
				}else if(data['code'] == -200){
					window.location.href = "http://www.psdashi.cn/ps/task/error.htm";
				}else if(data['code'] == -300){
					alert('您已申请过添加工程师，不可重复申请添加；如有疑问，请联系客服。或手动添加工程师QQ：'+data['data']);
					location.reload();
				}
			}
		})
	})
	/*------------------------------图片点击查看原图------------------------------*/
//点击图片查看原图
$('.daxiaotu').on('click',function(){
	var imgs = new Image(); 
	$(imgs).attr('src',$(this).attr('src')); 
	$('.showInitImg').html(imgs);
	$('.showInitImg').show();
	$('.showInitImgBg').show();
})
//点击背景隐藏原图
$(document).on('click','.showInitImgBg',function(){
	$('.showInitImg').hide();
	$('.showInitImgBg').hide();
})
//点击图片隐藏原图
$('.showInitImg').on('click',function(){
	$('.showInitImg').hide();
	$('.showInitImgBg').hide();
})